package net.melon.sso.pojo;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

import net.esj.basic.annotation.IgnorePrint;
import net.esj.basic.pojo.AbstractPojo;

@XmlRootElement
public class Member extends AbstractPojo<String> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4627659934984701895L;

	public static final String MOBJECT_TYPE =  "SSO_MEMBER";
	
	public static final String APP_REGISTER_MEMBER_TYPE =  "app.register.member.type";
	
	private String id;
	private String icon;
	private String realname;
	private String mobile;
	private String password;
	private Date gmtCreate;
	private Date lastLoginTime;
	private String lastLoginIp;
	private int state;
	private MemberType type;
	private String agencyId;
	
	public Member(){
		
	}
	
	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getIcon() {
		return icon;
	}


	public void setIcon(String icon) {
		this.icon = icon;
	}


	public String getRealname() {
		return realname;
	}


	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getMobile() {
		return mobile;
	}


	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@IgnorePrint
	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public Date getGmtCreate() {
		return gmtCreate;
	}


	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}


	public Date getLastLoginTime() {
		return lastLoginTime;
	}


	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}


	public String getLastLoginIp() {
		return lastLoginIp;
	}


	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}


	public int getState() {
		return state;
	}


	public void setState(int state) {
		this.state = state;
	}


	public MemberType getType() {
		return type;
	}


	public void setType(MemberType type) {
		this.type = type;
	}

	public String getAgencyId() {
		return agencyId;
	}

	public void setAgencyId(String agencyId) {
		this.agencyId = agencyId;
	}
	
}
